package com.group01.exception;

import com.group01.enums.CodeAndMessageEnum;
import lombok.Data;
import lombok.Getter;

/**
 * @Description
 * @Author 翟玉龙
 * @Date 2024/6/20
 */

@Getter
public class SystemException extends RuntimeException{

    private CodeAndMessageEnum codeAndMessageEnum;

    public SystemException(CodeAndMessageEnum codeAndMessageEnum) {
        this.codeAndMessageEnum = codeAndMessageEnum;
    }

    public SystemException() {

    }

    public SystemException(String message) {
        super(message);
    }

}
